package openai

import (
	"fmt"

	"github.com/EDDYCJY/go-gin-example/pkg/app"
	"github.com/EDDYCJY/go-gin-example/pkg/openai/aijieyun/pkg/services/aecs"
	"github.com/gin-gonic/gin"
)

func DescribeGPUInstances(c *gin.Context) {
	appG := app.Gin{C: c}
	client := aecs.DefaultClient
	response, err := client.DescribeGPUInstances()

	if err != nil {
		appG.ResponseError(-1, fmt.Sprintf("DescribeGPUInstances error: %v", err.Error()))
	}
	appG.ResponseSuccess(gin.H{"response": response})
}
